package com.akk.platform.manage;

import com.akk.platform.manage.business.AgentBusiness;
import com.akk.utils.RestResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/platform/manage")
@Api(value = "manage-agent",description = "平台后台接口-AGENT")
public class AgentAction {

    @Autowired
    AgentBusiness agentBusiness;

    @GetMapping(value = "/useragentlist")
    @ApiOperation(value = "获取APP下代理商",produces = MediaType.APPLICATION_JSON_VALUE, httpMethod = "GET", response = RestResponse.class)
    public RestResponse userAgentList(String appId){
        return agentBusiness.userAgentList(appId);
    }
}
